package de.hub.sar.itsec.sslfetcher;

import de.hub.sar.itsec.sslfetcher.hosts.Host;

public class LoadListener implements ILoadListener {
	private long doneCounter = 0;
	private long failedCounter = 0;

	@Override
	public void onDone(Host host) {
		this.doneCounter++;
	}

	@Override
	public void onFailed(Host host) {
		this.failedCounter++;
	}
	
	public long countDone() {
		return this.doneCounter;
	}
	
	public long countFailed() {
		return this.failedCounter;
	}
	
	public long count() {
		return this.doneCounter + this.failedCounter;
	}
}
